﻿@model Qu.ComputingContest.Model.Registration
           
@Html.HiddenFor(m => m.RegistrationID)

<div id="Mentor">
  @Html.EditorFor(m => m.Mentor)
</div>

<div id="Students">
  @Html.EditorFor(m => m.Students)
</div>

<table>
<tr>
    <td colspan=2>
    @Html.Raw(@ViewBag.WorkshopInvitationMessage)
    @*    We are pleased to invite you and your registered students to our Robots programming training workshop on the 31/12/2011.
    <br />The workshop will be from 10am to 2:30pm at Ibn Khaldun Hall, Qatar University.*@

     @if (string.IsNullOrEmpty(ViewBag.MaxKitsReachedMessage))
     {
       <div>On the day of the Workshop each registered school will receive a loaner Lego Kit for further practice to allow participating teams to prepare for the Contest Tasks.</div>
     }
    </td>
</tr>
<tr>
    <td style="width:40%;">
        <span class="editor-label">
            Please select the Workshop you would like to attend <em>*</em>
        </span>
    </td>
    <td>
        <span class="editor-field">
              @Html.DropDownListFor(model => model.WorkshopDate, ((SelectList)ViewBag.Workshops).Select(option => new SelectListItem
              {
                    Text = (option == null ? "None" : option.Text),
                    Value = option.Value,
                    Selected = (Model != null) && (option.Value == string.Format("{0:dd MMMM yyyy}", Model.WorkshopDate))
              }), "Choose...")
              @Html.ValidationMessageFor(model => model.WorkshopDate, "*")
        </span>
    </td>
</tr>
</table>

@Html.HiddenFor(m => m.WorkshopDate)